/**
 * Created by Administrator on 15-11-6.
 */
 var content = "侵权举报";
window.onload=function(){
    var url=getUrl();
    var type=$.getUrlParam("type");
    var objId=$.getUrlParam("objId");
    var userid =getUserId();
    $(".w_jubao").on("click",function(){

//        var content=$(".content").val();
        $.jsonp({
            url: 'http://'+url+'/api/recommend/boost',
            data: {userId:userid,type:type,objId:objId,content:content},
            callbackParameter: "callback",
            success: function (data, textStatus, xOptions) {
                showToast("举报成功");
            },
            error: function (xOptions,textStatus) {
                showToast("举报失败");
            }
        });



    });
}

function checkContent(checkcontent){
    content = checkcontent;
}